/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 删除景点 GET /scenic/scenicSpot/deleteScenicSpot */
export async function scenicScenicSpotDeleteScenicSpotUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicScenicSpotDeleteScenicSpotUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/scenic/scenicSpot/deleteScenicSpot', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 景点详情 依据id查询景点详情 GET /scenic/scenicSpot/getScenicSpot */
export async function scenicScenicSpotGetScenicSpotUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicScenicSpotGetScenicSpotUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingjingdixiangqingvo>(
    '/scenic/scenicSpot/getScenicSpot',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 分页查询景点 POST /scenic/scenicSpot/pageScenicSpot */
export async function scenicScenicSpotPageScenicSpotUsingPost({
  body,
  options,
}: {
  body: API.ScenicSpotQueryBob448c8c758b34897A0d8E1244a46bfab;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVojingdivo>(
    '/scenic/scenicSpot/pageScenicSpot',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 保存景点 如需修改则传递id POST /scenic/scenicSpot/saveScenicSpot */
export async function scenicScenicSpotSaveScenicSpotUsingPost({
  body,
  options,
}: {
  body: {};
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyinglong>('/scenic/scenicSpot/saveScenicSpot', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
